﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/YUIAspNet.Master" CodeBehind="ColorPicker.aspx.cs" Inherits="YUIAspNetDemo._Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<style type="text/css">
.colorPickerContainer { border: solid 1px #000000; display:block; clear:both; float:left; width:400px; height:200px}
.colorPickerAjax .hd {display:none;}
</style>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    Note that by having a postback, the previously selected color is preserved.<br />
    <asp:Button ID="btnPost" Text="Do Postback" runat="server" />
    <yui:ColorPicker ID="cp" ShowWebsafe="true" ShowControls="true" ShowHexSummary="true" ShowRgbControls="true" Color="ActiveBorder" ShowHexControls="true" ShowHsvControls="true" runat="server" CssClass="colorPickerContainer" />
    <asp:UpdatePanel ID="pnlUpdate" runat="server" RenderMode="Block">
        <ContentTemplate><asp:Button ID="btn" runat="server" Text="load through ajax" /></ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
